<template>
	<home-header></home-header>
 	<home-swipers :swiperList='swiperList'></home-swipers>
	<home-icons :IconList='IconList'></home-icons>
	<home-location></home-location>
	<home-Avtivity></home-Avtivity>
	<home-Hot :hotList='hotList'></home-Hot>
	<home-Qyou :yyy='yyy'></home-Qyou>
	<home-nali :xxx='xxx'></home-nali>
	<home-tail></home-tail>
</template>

<script>
	//1.引入组件
	import HomeHeader from './pages/Header'
	import HomeSwipers from './pages/Swipers'
	import HomeIcons from './pages/lcons'
	import HomeLocation from './pages/Location'
	import HomeAvtivity from './pages/Avtivity'
	import HomeHot from './pages/Hot'
	import HomeQyou from './pages/Qyou'
	import HomeNali from './pages/Nali'
	import HomeTail from './pages/Tail'
	import axios from 'axios'
	
	
	//2.导出调用组件
	export default{
		//导出组件
		components:{
			HomeHeader,
			HomeSwipers,
			HomeIcons,
			HomeLocation,
			HomeAvtivity,
			HomeHot,
			HomeQyou,
			HomeNali,
			HomeTail,
		},
		data(){
			return{
				swiperList:[],
				IconList:[],
				hotList:[],
				yyy:[],
				xxx:[],
			}
		},
		mounted(){
			axios.get('./dataHome.json').then( (res)=>{
				const msg =res.data.data[0];
				this.swiperList=msg.swiperList;
				this.IconList=msg.IconList;
				this.hotList=msg.hotList;
				this.yyy=msg.yyy;
				this.xxx=msg.xxx;
				// console.log(this.yyy)
			})
		}
	}
</script>

<style>
</style>
